package com.xxcxcxcx.xc_moremob;

import com.xxcxcxcx.xc_moremob.common.registers.EntityRegister;
import com.xxcxcxcx.xc_moremob.common.registers.ItemRegister;
import net.minecraft.world.item.CreativeModeTab;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.Items;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import software.bernie.geckolib3.GeckoLib;

@Mod(Main.MOD_ID)
public class Main {
    public static final String MOD_ID = "xc_moremob";
    public static final CreativeModeTab AnimalRemakeTab = new CreativeModeTab("MoreMob") {
        @Override
        @OnlyIn(Dist.CLIENT)
        public ItemStack makeIcon() {
            return new ItemStack(Items.SHEEP_SPAWN_EGG);
        }
    };
    public Main() {
        IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
        ItemRegister.ITEMS.register(bus);
        EntityRegister.ENTITY_TYPES.register(bus);
        MinecraftForge.EVENT_BUS.register(this);
        ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, Config.commonConfig);
        GeckoLib.initialize();
    }
    public static void setup() {
        IEventBus bus = MinecraftForge.EVENT_BUS;
    }
}
